import request from '@/utils/request'

// 查询批量民主评议列表
export function listComment(query) {
  return request({
    url: '/Spsparty/comment/list',
    method: 'get',
    params: query
  })
}

// 查询批量民主评议详细
export function getComment(ctId) {
  return request({
    url: '/Spsparty/comment/' + ctId,
    method: 'get'
  })
}

// 新增批量民主评议
export function addComment(data) {
  return request({
    url: '/Spsparty/comment',
    method: 'post',
    data: data
  })
}

// 修改批量民主评议
export function updateComment(data) {
  return request({
    url: '/Spsparty/comment/edit',
    method: 'post',
    data: data
  })
}

// 删除批量民主评议
export function delComment(ctId) {
  return request({
    url: '/Spsparty/comment/delete/' + ctId,
    method: 'post'
  })
}

// 导出批量民主评议
export function exportComment(query) {
  return request({
    url: '/Spsparty/comment/export',
    method: 'get',
    params: query
  })
}